from flask  import Flask,render_template,redirect,request,jsonify,make_response

app = Flask(__name__)

# 配置文件
app.config.from_object("settings.DevelopmentConfig")


@app.route('/index',methods=['GET','POST'])

def index():
    # 请求相关:
    # request.method
    # request.files
    """
    obj = request.files['the_file_name']
    obj.save('/var/www/uploads/' + secure_filename(f.filename))
    """
    return ""
    return json.dumps({}) # return jsonify({})
    return render_template("index.html",n1=123)
    return redirect("/index")


if __name__=="__main__":
    app.run()